﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Crossroad.Core.Exceptions
{
    /// <summary>
    /// 权限异常
    /// </summary>
    public class AuthorizeException : Exception
    {
        public int HttpCode { set; get; } = 401;

        public AuthorizeException()
        { }

        public AuthorizeException(string message) : base(message)
        {
        }

        public AuthorizeException(string message, int httpCode) : base(message)
        {
            HttpCode = httpCode;
        }
    }
}
